<script setup>
import { Document, Menu } from '@element-plus/icons-vue'
</script>

<template>
  <el-container class="el-container">
    <el-aside width="200px" class="el-aside">
      <el-scrollbar>
        <el-menu
          router
          default-active="/note/stock"
          class="el-menu-vertical-demo"
          background-color="#1f2937"
          text-color="#fff"
          style="border: none; height: calc(100vh - 60px)"
        >
          <el-menu-item index="/note/stock">
            <el-icon>
              <Menu />
            </el-icon>
            <span>stock</span>
          </el-menu-item>
          <el-menu-item index="/note/doc">
            <el-icon>
              <document />
            </el-icon>
            <span>doc</span>
          </el-menu-item>
        </el-menu>
      </el-scrollbar>
    </el-aside>

    <el-main>
      <RouterView />
    </el-main>
  </el-container>
</template>

<style scoped>
.el-container {
  padding: 0;
  margin: 0;
  height: calc(100vh - 60px);
}
</style>
